package com.nari.ies.server.entity;

/**
 * 常用区域ID枚举
 */
public class AreaNameNum {
    /**
     * 西北总调
     */
    public static final String XI_BEI_ZHONG_DIAO = "22360199010500000001";
    /**
     * 陕西
     */
    public static final String SHAN_XI = "22360199010500000002";
    /**
     * 甘肃
     */
    public static final String GAN_SU = "22360199010500000003";
    /**
     * 宁夏
     */
    public static final String NING_XIA = "22360199010500000004";
    /**
     * 青海
     */
    public static final String QING_HAI = "22360199010500000005";
    /**
     * 新疆
     */
    public static final String  XIN_JIANG = "22360199010500000006";
//    /**
//     * 西部
//     */
//    public static final String  XI_BU = "22360199010500000020";
//    /**
//     * 东部
//     */
//    public static final String  DONG_BU  = "22360199010500000021";
    /**
     * 西北直调
     */
    public static final String  XI_BEI_ZD = "22360199010500000022";
//    /**
//     * 甘肃2
//     */
//    public static final String  GAN_SU_2 = "22360199010500000017";



    public static boolean isXiBeiZongDiao(String areaId) {
        return XI_BEI_ZHONG_DIAO.equals(areaId);
    }

    /**
     * 是否为省级ID
     *
     * @param areaId
     * @return
     */
    public static boolean isProvincial(String areaId) {
        return SHAN_XI.equals(areaId) || GAN_SU.equals(areaId) || NING_XIA.equals(areaId) || QING_HAI.equals(areaId) || XIN_JIANG.equals(areaId)|| XI_BEI_ZD.equals(areaId);
    }

    public static String getNameByAreaId(String areaId) {
        String name = "";
        switch (areaId) {
            case AreaNameNum.SHAN_XI: {
                name = "陕西";
                break;
            }
            case AreaNameNum.GAN_SU: {
                name = "甘肃";
                break;
            }
            case AreaNameNum.NING_XIA: {
                name = "宁夏";
                break;
            }
            case AreaNameNum.QING_HAI: {
                name = "青海";
                break;
            }
            case AreaNameNum.XIN_JIANG: {
                name = "新疆";
                break;
            }
            case AreaNameNum.XI_BEI_ZD: {
                name = "西北直调";
                break;
            }
            default:
                name = "西北总调";
        }

        return name;
    }
}
